package com.ruoyi.certificate.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.certificate.mapper.NjtCertificateMapper;
import com.ruoyi.certificate.domain.NjtCertificate;
import com.ruoyi.certificate.service.INjtCertificateService;

/**
 * 农检通合格证Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-05
 */
@Service
public class NjtCertificateServiceImpl implements INjtCertificateService 
{
    @Autowired
    private NjtCertificateMapper njtCertificateMapper;

    /**
     * 查询农检通合格证
     * 
     * @param id 农检通合格证主键
     * @return 农检通合格证
     */
    @Override
    public NjtCertificate selectNjtCertificateById(Long id)
    {
        return njtCertificateMapper.selectNjtCertificateById(id);
    }

    /**
     * 查询农检通合格证列表
     * 
     * @param njtCertificate 农检通合格证
     * @return 农检通合格证
     */
    @Override
    public List<NjtCertificate> selectNjtCertificateList(NjtCertificate njtCertificate)
    {
        return njtCertificateMapper.selectNjtCertificateList(njtCertificate);
    }

    /**
     * 新增农检通合格证
     * 
     * @param njtCertificate 农检通合格证
     * @return 结果
     */
    @Override
    public int insertNjtCertificate(NjtCertificate njtCertificate)
    {
        return njtCertificateMapper.insertNjtCertificate(njtCertificate);
    }

    /**
     * 修改农检通合格证
     * 
     * @param njtCertificate 农检通合格证
     * @return 结果
     */
    @Override
    public int updateNjtCertificate(NjtCertificate njtCertificate)
    {
        return njtCertificateMapper.updateNjtCertificate(njtCertificate);
    }

    /**
     * 批量删除农检通合格证
     * 
     * @param ids 需要删除的农检通合格证主键
     * @return 结果
     */
    @Override
    public int deleteNjtCertificateByIds(Long[] ids)
    {
        return njtCertificateMapper.deleteNjtCertificateByIds(ids);
    }

    /**
     * 删除农检通合格证信息
     * 
     * @param id 农检通合格证主键
     * @return 结果
     */
    @Override
    public int deleteNjtCertificateById(Long id)
    {
        return njtCertificateMapper.deleteNjtCertificateById(id);
    }
}
